#!usr/bin/python
# -*= coding: UTF-8 -*-
import urllib.request

'''
http://placekitten.com/
'''
req = urllib.request.Request('http://placekitten.com/g/500/600')
response = urllib.request.urlopen(req)

cat_img = response.read()
#html = html.decode('utf-8')
with open('cat.jpg', 'wb') as f:
    f.write(cat_img)

url = response.geturl()
info = response.info()
code = response.getcode()
print(url)
print(info)
print(code)
print(3333)






